package com.jic.member.controller.rest;

import com.jic.common.base.vo.PageResult;
import com.jic.member.api.rest.MememberGrowthLogApi;
import com.jic.member.request.MemberGrowthLogRequest;
import com.jic.member.response.MemberGrowthLogResponse;
import com.jic.member.service.MememberGrowthLogService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/rest/growthLog")
@Api(tags = {"会员成长值流水接口"})
@Slf4j
public class MememberGrowthLogOperationController implements MememberGrowthLogApi {

    @Resource
    MememberGrowthLogService memberGrowthLogService;

    @Override
    @RequestMapping("/queryMemberGrowthLog")
    public PageResult<MemberGrowthLogResponse> queryMememberGrowthLog(MemberGrowthLogRequest memberGrowthLogRequest) {
        return memberGrowthLogService.queryMememberGrowthLog(memberGrowthLogRequest);
    }
}
